/**
 * note item template for home
 */

export default class NoteHomeItem extends React.Component {
    constructor(props) {
        super(props);
    }

    render() {
        return (
            <section className="home-item note-home-item">
                <div className="header">
                    <a href={this.props.detailHref}>{this.props.title}</a>
                    <span>{this.props.createDateTime}</span>
                </div>
                <div className="content">
                    {this.props.content}
                </div>
                <div className="footer">
                    <a href={this.props.detailHref}>查看明细</a>
                </div>
            </section>
        );
    }
}